package user

import (
	demoService "zin/app/provider/demo"
	"zin/framework/gin"
)

func Register(r *gin.Engine) {
	//注册路由时， 绑定中间件
	r.Bind(&demoService.ProviderDemo{})

	v1 := r.Group("/v1")
	{
		v1.POST("/user", CreateUser)
		v1.GET("/user/:id", GetUserInfo)
	}

}
